.class Lcom/estrongs/io/archive/aeszip/a$d;
.super Ljava/io/InputStream;
.source "AesZipFile.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/io/archive/aeszip/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "d"
.end annotation


# instance fields
.field private a:J

.field private b:J

.field private c:Z

.field final synthetic d:Lcom/estrongs/io/archive/aeszip/a;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method constructor <init>(Lcom/estrongs/io/archive/aeszip/a;JJ)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/io/archive/aeszip/a$d;->d:Lcom/estrongs/io/archive/aeszip/a;

    invoke-direct {p0}, Ljava/io/InputStream;-><init>()V

    .line 2
    iput-wide p4, p0, Lcom/estrongs/io/archive/aeszip/a$d;->a:J

    .line 3
    iput-wide p2, p0, Lcom/estrongs/io/archive/aeszip/a$d;->b:J

    return-void
.end method


# virtual methods
.method public available()I
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->d:Lcom/estrongs/io/archive/aeszip/a;

    invoke-static {v0}, Lcom/estrongs/io/archive/aeszip/a;->a(Lcom/estrongs/io/archive/aeszip/a;)V

    .line 2
    iget-wide v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->a:J

    .line 3
    iget-boolean v2, p0, Lcom/estrongs/io/archive/aeszip/a$d;->c:Z

    if-eqz v2, :cond_0

    const-wide/16 v2, 0x1

    add-long/2addr v0, v2

    :cond_0
    const-wide/32 v2, 0x7fffffff

    cmp-long v4, v0, v2

    if-lez v4, :cond_1

    const v0, 0x7fffffff

    goto :goto_0

    :cond_1
    long-to-int v0, v0

    :goto_0
    return v0
.end method

.method b()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->c:Z

    return-void
.end method

.method public read()I
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->d:Lcom/estrongs/io/archive/aeszip/a;

    invoke-static {v0}, Lcom/estrongs/io/archive/aeszip/a;->a(Lcom/estrongs/io/archive/aeszip/a;)V

    .line 2
    iget-wide v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->a:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-gtz v4, :cond_1

    .line 3
    iget-boolean v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->c:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->c:Z

    return v0

    :cond_0
    const/4 v0, -0x1

    return v0

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->d:Lcom/estrongs/io/archive/aeszip/a;

    iget-object v0, v0, Lcom/estrongs/io/archive/aeszip/a;->a:Les/ro0;

    iget-wide v1, p0, Lcom/estrongs/io/archive/aeszip/a$d;->b:J

    invoke-virtual {v0, v1, v2}, Les/ro0;->d(J)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->d:Lcom/estrongs/io/archive/aeszip/a;

    iget-object v0, v0, Lcom/estrongs/io/archive/aeszip/a;->a:Les/ro0;

    invoke-virtual {v0}, Les/ro0;->c()I

    move-result v0

    if-ltz v0, :cond_2

    .line 7
    iget-wide v1, p0, Lcom/estrongs/io/archive/aeszip/a$d;->b:J

    const-wide/16 v3, 0x1

    add-long/2addr v1, v3

    iput-wide v1, p0, Lcom/estrongs/io/archive/aeszip/a$d;->b:J

    .line 8
    iget-wide v1, p0, Lcom/estrongs/io/archive/aeszip/a$d;->a:J

    sub-long/2addr v1, v3

    iput-wide v1, p0, Lcom/estrongs/io/archive/aeszip/a$d;->a:J

    :cond_2
    return v0
.end method

.method public read([BII)I
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x0

    if-gtz p3, :cond_1

    if-ltz p3, :cond_0

    return v0

    .line 9
    :cond_0
    new-instance p1, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {p1}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw p1

    .line 10
    :cond_1
    iget-object v1, p0, Lcom/estrongs/io/archive/aeszip/a$d;->d:Lcom/estrongs/io/archive/aeszip/a;

    invoke-static {v1}, Lcom/estrongs/io/archive/aeszip/a;->a(Lcom/estrongs/io/archive/aeszip/a;)V

    .line 11
    iget-wide v1, p0, Lcom/estrongs/io/archive/aeszip/a$d;->a:J

    const-wide/16 v3, 0x0

    cmp-long v5, v1, v3

    if-gtz v5, :cond_3

    .line 12
    iget-boolean p3, p0, Lcom/estrongs/io/archive/aeszip/a$d;->c:Z

    if-eqz p3, :cond_2

    .line 13
    iput-boolean v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->c:Z

    .line 14
    aput-byte v0, p1, p2

    const/4 p1, 0x1

    return p1

    :cond_2
    const/4 p1, -0x1

    return p1

    :cond_3
    int-to-long v3, p3

    cmp-long v0, v3, v1

    if-lez v0, :cond_4

    long-to-int p3, v1

    .line 15
    :cond_4
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->d:Lcom/estrongs/io/archive/aeszip/a;

    iget-object v0, v0, Lcom/estrongs/io/archive/aeszip/a;->a:Les/ro0;

    iget-wide v1, p0, Lcom/estrongs/io/archive/aeszip/a$d;->b:J

    invoke-virtual {v0, v1, v2}, Les/ro0;->d(J)V

    .line 16
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/a$d;->d:Lcom/estrongs/io/archive/aeszip/a;

    iget-object v0, v0, Lcom/estrongs/io/archive/aeszip/a;->a:Les/ro0;

    invoke-virtual {v0, p1, p2, p3}, Les/ro0;->a([BII)I

    move-result p1

    if-lez p1, :cond_5

    .line 17
    iget-wide p2, p0, Lcom/estrongs/io/archive/aeszip/a$d;->b:J

    int-to-long v0, p1

    add-long/2addr p2, v0

    iput-wide p2, p0, Lcom/estrongs/io/archive/aeszip/a$d;->b:J

    .line 18
    iget-wide p2, p0, Lcom/estrongs/io/archive/aeszip/a$d;->a:J

    sub-long/2addr p2, v0

    iput-wide p2, p0, Lcom/estrongs/io/archive/aeszip/a$d;->a:J

    :cond_5
    return p1
.end method
